package com.swh.cloud.biz;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.core.env.Environment;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.swh.cloud.biz.service.impl.UserService;
import com.swh.user.domain.UserEntity;

@SpringBootApplication
//让该服务使用eureka服务器（只需添加@EnableDiscoveryClient注解就可以）
@EnableDiscoveryClient 
//@EnableEurekaClient //这个标注只能用于eureka服务，还可以使用@EnableDiscoveryClient
@RestController
@EnableHystrix
@EnableHystrixDashboard
public class BIZServerLaunch {
    
    @RequestMapping(value="/")
    private String isStart(){
   	return "BIZServerLaunch start Success" ;
      }
    
    
    
    public static void main(String[] args) {
	SpringApplication.run(BIZServerLaunch.class, args) ;
    }

}
